package com.example.daydayup.temp;

/**
 *
 */
public class tempTest {
    public static void main(String[] args) {
//        Map map = new HashMap();
//        Map map1 = new WeakHashMap();
//        Map map2 = new LinkedHashMap();
//        StringBuffer s = new StringBuffer();
//        Hashtable<String,String> hashtable = new Hashtable<>();
//        Vector vector = new Vector();
//        ArrayList list = new ArrayList();
        String x = "string";
        String y = "string";
        String z = new String("string");
        System.out.println(x == y); // true
        System.out.println(x == z); // false
        System.out.println(x.equals(y)); // true 
        System.out.println(x.equals(z)); // true 


    }
}


